//
//  TZHotHeader.m
//  XMLYFM
//
//  Created by dllo on 15/12/24.
//  Copyright © 2015年 zzl. All rights reserved.
//

#import "TZHotHeader.h"
#import <Masonry.h>

@implementation TZHotHeader
-(instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self createSubViews];
    
    
    }
    return self;

}

-(void)createSubViews
{
    
    
    
    self.arrowImageView = [[UIImageView alloc]init];
    //    self.arrowImageView.backgroundColor = [UIColor yellowColor];
    
    [self addSubview:self.arrowImageView];
    [self.arrowImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.and.top.mas_equalTo(10);
        make.top.mas_equalTo(15);
        make.size.mas_equalTo(CGSizeMake(18, 18));
        
        
    }];
    
    self.titleLabel = [[UILabel alloc]init];
    //    self.titleLabel.backgroundColor = [UIColor yellowColor];
    self.titleLabel.font = [UIFont italicSystemFontOfSize:17];
    [self addSubview:self.titleLabel];
    [self.titleLabel sizeToFit];
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.arrowImageView.mas_top).offset(-5);
        make.left.equalTo(self.arrowImageView.mas_right).offset(12);
        make.size.mas_equalTo(CGSizeMake(TZWIDTH/3, TZWIDTH * 0.08));
        
        
    }];
    



}

@end
